<template>
    <!-- 首页-八字篇 -->
    <div class="home-container">
        <div class="card-item">
            <div class="module-title">
                <span>神煞是常见技法的归纳</span><br>
                <span style="color: #FB5C5F;">切勿一见神煞便下定语</span>
            </div>
            <div class="button-list">
                <div class="button" @click="showTips('')">空亡</div>
            </div>
            <div class="button-list">
                <div class="button" @click="showTips('')">天德贵人</div>
                <div class="button" @click="showTips('')">月德贵人</div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { showTips } from '@utils';
import { useRouter } from 'vue-router';

const router = useRouter();

function toTextPage(key) {
    router.push({
        path: '/other/text',
        query: {
            key: key
        }
    });
}
</script>

<style lang="scss" scoped>
.card-item {
    background-color: #ffffff;
    margin: .5rem .5rem 0;
    border-radius: .4rem;
    padding: .5rem 0 .375rem;
}

.module-title {
    width: 100%;
    color: #D3AE78;
    font-size: .75rem;
    text-align: center;
    margin-bottom: .25rem;
}

.button-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 .25rem;
}

.button {
    width: 100%;
    height: 2.5rem;
    background-color: #f2f2f2;
    border-radius: .2rem;
    color: #000000;
    text-align: center;
    line-height: 2.5rem;
    margin: .25rem;
    font-size: .75rem;
}

.jump-text {
    color: #2EBCF1;
    font-size: .65rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
}
</style>